﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ikvm.extensions;

namespace Game.templates.npc
{
    public class MinionData
    {
	    /**
	     * Field _minionId.
	     */
	    private int _minionId;
	    /**
	     * Field _minionAmount.
	     */
	    private int _minionAmount;
	
	    /**
	     * Constructor for MinionData.
	     * @param minionId int
	     * @param minionAmount int
	     */
	    public MinionData(int minionId, int minionAmount)
	    {
		    _minionId = minionId;
		    _minionAmount = minionAmount;
	    }
	
	    /**
	     * Method getMinionId.
	     * @return int
	     */
	    public int getMinionId()
	    {
		    return _minionId;
	    }
	
	    /**
	     * Method getAmount.
	     * @return int
	     */
	    public int getAmount()
	    {
		    return _minionAmount;
	    }
	
	    /**
	     * Method equals.
	     * @param o Object
	     * @return boolean
	     */
	
	    public bool equals(Object o)
	    {
		    if (o == this)
		    {
			    return true;
		    }
		    if (o == null)
		    {
			    return false;
		    }
		    if (o.getClass() != this.getClass())
		    {
			    return false;
		    }
		    return ((MinionData) o).getMinionId() == getMinionId();
	    }
    }
}
